package renda.pojo;

import java.util.Date;

/**
 * Topics entity. @author MyEclipse Persistence Tools
 */

public class Topics implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 2816109801409418037L;
	private Integer tid;
	private Integer uid;
	private String uname = "";
	private String topicname;
	private String topiccontent;
	private Integer topicnum;
	private Date topictime;
	private Integer isuserreturn;
	private Integer isadminreturn;

	// Constructors

	/** default constructor */
	public Topics() {
	}

	/** minimal constructor */
	public Topics(Integer uid, String uname, String topicname) {
		this.uid = uid;
		this.uname = uname;
		this.topicname = topicname;
	}

	/** full constructor */
	public Topics(Integer uid, String uname, String topicname, String topiccontent, Integer topicnum, Date topictime,
			Integer isuserreturn, Integer isadminreturn) {
		this.uid = uid;
		this.uname = uname;
		this.topicname = topicname;
		this.topiccontent = topiccontent;
		this.topicnum = topicnum;
		this.topictime = topictime;
		this.isuserreturn = isuserreturn;
		this.isadminreturn = isadminreturn;
	}

	// Property accessors

	public Integer getTid() {
		return this.tid;
	}

	public void setTid(Integer tid) {
		this.tid = tid;
	}

	public Integer getUid() {
		return this.uid;
	}

	public void setUid(Integer uid) {
		this.uid = uid;
	}

	public String getUname() {
		return this.uname;
	}

	public void setUname(String uname) {
		this.uname = uname;
	}

	public String getTopicname() {
		return this.topicname;
	}

	public void setTopicname(String topicname) {
		this.topicname = topicname;
	}

	public String getTopiccontent() {
		return this.topiccontent;
	}

	public void setTopiccontent(String topiccontent) {
		this.topiccontent = topiccontent;
	}

	public Integer getTopicnum() {
		return this.topicnum;
	}

	public void setTopicnum(Integer topicnum) {
		this.topicnum = topicnum;
	}

	public Date getTopictime() {
		return this.topictime;
	}

	public void setTopictime(Date topictime) {
		this.topictime = topictime;
	}

	public Integer getIsuserreturn() {
		return this.isuserreturn;
	}

	public void setIsuserreturn(Integer isuserreturn) {
		this.isuserreturn = isuserreturn;
	}

	public Integer getIsadminreturn() {
		return this.isadminreturn;
	}

	public void setIsadminreturn(Integer isadminreturn) {
		this.isadminreturn = isadminreturn;
	}

	@Override
	public String toString() {
		return "Topics [isadminreturn=" + isadminreturn + ", isuserreturn=" + isuserreturn + ", tid=" + tid
				+ ", topiccontent=" + topiccontent + ", topicname=" + topicname + ", topicnum=" + topicnum
				+ ", topictime=" + topictime + ", uid=" + uid + ", uname=" + uname + "]";
	}

}